package com.lc.luzhengtang.util;

import android.content.Context;

import com.lc.luzhengtang.conn.Conn;
import com.lc.luzhengtang.wxapi.WXConfig;
import com.module.weixin.WXPay;

/**
 * Created by Miao on 2017/5/24.
 */

public class WXPayUtils extends WXPay {

    private String url;

    /**
     * ��ʼ��΢�ŷ���
     *
     * @param context
     */
    public WXPayUtils(Context context) {
        super(context);
    }

    @Override
    protected String appId() {
        return WXConfig.WXAPP_ID;
    }

    @Override
    protected String mchId() {
        return WXConfig.PARTNERID;
    }

    @Override
    protected String apiKey() {
        return WXConfig.APIID;
    }

    @Override
    protected String notifyUrl() {
        return Conn.Url_Get_WX;
    }

    @Override
    protected String spbillCreateIp() {
        return "127.0.0.1";
    }

    public WXPay setNotifyUrl(String url) {

        this.url = url;

        return this;

    }
}
